package com.asset.dispoal.file.document.api;


import com.asset.dispoal.file.document.dto.DocumentAddRequest;
import com.asset.dispoal.file.document.dto.DocumentPageRequest;
import com.asset.dispoal.file.document.dto.DocumentPageResponse;
import com.asset.dispoal.file.document.dto.DocumentTypeAddRequest;
import com.asset.dispoal.file.document.dto.DocumentTypePageRequest;
import com.asset.dispoal.file.document.dto.DocumentTypePageResponse;
import tech.mhuang.pacebox.springboot.protocol.Result;
import tech.mhuang.pacebox.springboot.protocol.data.PageVO;

public interface DocumentService {

    Result insertType(DocumentTypeAddRequest request);

    Result deleteType(String id);

    Result insert(DocumentAddRequest documentAddRequest);

    Result delete(String id);

    Result<PageVO<DocumentTypePageResponse>> queryTypePage(DocumentTypePageRequest request);

    Result<PageVO<DocumentPageResponse>> queryPage(DocumentPageRequest request);

    Result<DocumentTypePageResponse> getTypeById(String id);
}
